#include <stdio.h>
#include <stdlib.h>
#include "addfunc.h"


int main(int argc, const char *argv[])
{
	int num1;
	int num2;
	int flag=0;
	
	printf("plz input num1\n");
	scanf("%d",&num1);
	printf("plz input num2\n");
	scanf("%d",&num2);
	printf("******1\n");
	link_node *NO1 = creat_link(num1);
	link_node *NO2 = creat_link(num2);
	printf("*****2\n");
	link_node *E=(link_node *)malloc(sizeof(link_node));
	E->num=0;
	E->next=NULL;
	printf("****3\n");
	addlinknum(NO1,NO2,E,&flag);
	modlink(E);
	view(E);
	
	return 0;
}
